<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../util.js"></script>
</head>
<body>

<button onclick="openDialog()">显示模态窗口</button>
<button onclick="openDialogNoSize()">显示模态窗口不指定尺寸</button>

<script>
    function openDialog() {
        var date= new Date();
        var obj = new Object();
        obj.name="i5tt";
        console.log("打开窗口于:"+date.getDateStr());
        var returnValue=window.showModalDialog("dialog.html",obj,"status=no;help=no;scroll=no;resizable=no;location=no;toolbar=no;");
        console.log("打开窗口于:"+date.getDateStr(),returnValue);

    }
    function openDialogNoSize() {
        var obj = new Object();
        obj.name="i5tt";
        window.showModalDialog("dialog.html",obj);
    }


</script>

</body>
</html>